     (a|b|c)*a {substring(1,EOL); insert(EOL,a)}
     b(a|b|c)* {replace(a,b)}
     c(a|b|c)* {replace(a,c)}
               {print(LINE)}